package chapter21.homework02;

//保存需要存储的信息，通过初始化进行设置属性
public class Memento {

    private int state;


    Memento(int state){
        this.state=state;
    }

    public int getState() {
        return state;
    }

}
